import time

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import pytest






@pytest.fixture(scope="function",autouse=True)
def driver():
    driver = webdriver.Chrome()
    driver.get("http://jxc.b2zg.cn/#/login")
    driver.maximize_window()
    driver.implicitly_wait(15)
    yield driver  # yield就相当于返回值
    driver.quit() # 退出当前浏览器


